



<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/js/app/prePayment.js',CClientScript::POS_BEGIN);?>
<div id="left-col">

</div>

<div id="right-col">

    <div class="wrap">
        <div class="container">


            <div id="breadcrumb" style="display:none;"><span style="padding-left:10px;font-size:10px;color:#777777;" id="alsoviewing"></span></div>
            <div class="inside">

                <div class="form">

                    <div class="form">
                        <?php $form=$this->beginWidget('CActiveForm', array(
                        'id'=>'xlogrec-form',
                        'enableAjaxValidation'=>false,
                    )); ?>

                    <p class="note">Fields with <span class="required">*</span> are required.</p>

                    <?php echo $form->errorSummary($model); ?>

                    <div class="row">
                        <?php echo $form->labelEx($model,'custno'); ?>
                        <?php echo $form->dropDownList($model, 'custno', Po::model()->getCustomersList()); ?>
                        <?php echo $form->error($model,'custno'); ?>
                        <div class="model-data">
                            <?php echo   $model->custno; ?>
                        </div>
                    </div>
                    <div class="row">
                        <?php echo $form->labelEx($model,'entrydate'); ?>
                        <?php
                        $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                            'model' => $model,
                            'attribute' => 'entrydate',
                            'value' => CTimestamp::formatDate('Y-m-d', $model->entrydate),
                            'options' => array('dateFormat' => 'yy-m-d'),

                        ));
                        ?>
                        <?php echo $form->error($model,'entrydate'); ?>

                        <?php echo $form->labelEx($model,'paymethod'); ?>
                        <?php echo $form->dropDownList($model, 'paymethod',PaymentMethods::getList()); ?>
                        <?php echo $form->error($model,'paymethod'); ?>
                    </div>





                    <div class="row">
                        <?php echo $form->labelEx($model,'amount'); ?>
                        <?php echo $form->textField($model,'amount',array('size'=>10,'maxlength'=>10)); ?>
                        <?php echo $form->error($model,'amount'); ?>
                        <?php echo CHtml::label('Balance','Balance'); ?>
                        <?php echo CHtml::textField('balance','0,00',array('size'=>10,'maxlength'=>10,'disabled'=>'disabled')); ?>

                    </div>



                    <?php $this->endWidget(); ?>



                </div><!-- form -->





                <div style="padding:3px;"></div>

                <span class="grid-meta" id="clientlistlabel"></span>



                <div id="customer-tab">
                    <div id="customer-list">

                    </div>
                    <div id="location">

                    </div>
                </div>
            </div><!-- inside -->
        </div><!-- container -->
    </div><!-- wrap -->
    <?php $this->renderPartial('/copyright'); ?>
</div> <!-- left-col -->